/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.edu.nju.software.login.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Administrator
 */
public class SessionPool 
{
    private static SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
    
    public static Session getSession()
    {
        return sessionFactory.getCurrentSession();
    }
}
